package com.literature.threeGroup.mapper;

import com.literature.threeGroup.pojo.ResourceSnapshot;
import com.literature.threeGroup.pojo.ResourceSnapshotExample;
import com.literature.threeGroup.pojo.ResourceSnapshotWithBLOBs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface ResourceSnapshotMapper {
    long countByExample(ResourceSnapshotExample example);

    int deleteByExample(ResourceSnapshotExample example);

    int deleteByPrimaryKey(String id);

    int insert(ResourceSnapshotWithBLOBs record);

    int insertSelective(ResourceSnapshotWithBLOBs record);

    List<ResourceSnapshotWithBLOBs> selectByExampleWithBLOBs(ResourceSnapshotExample example);

    List<ResourceSnapshot> selectByExample(ResourceSnapshotExample example);

    ResourceSnapshotWithBLOBs selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") ResourceSnapshotWithBLOBs record, @Param("example") ResourceSnapshotExample example);

    int updateByExampleWithBLOBs(@Param("record") ResourceSnapshotWithBLOBs record, @Param("example") ResourceSnapshotExample example);

    int updateByExample(@Param("record") ResourceSnapshot record, @Param("example") ResourceSnapshotExample example);

    int updateByPrimaryKeySelective(ResourceSnapshotWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ResourceSnapshotWithBLOBs record);

    int updateByPrimaryKey(ResourceSnapshot record);
}